package com.hqj.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 黄啟军
 * @version 1.0
 * @date 2020/7/22 0022
 */
@Configuration
public class MybatisPlusConfig {
    /**注入分页插件*/
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
